package com.baizhi.service;

import com.baizhi.entity.User;
import com.baizhi.vo.PhoneCode;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author 2107class
 * @since 2021-12-17
 */
public interface UserService extends IService<User> {
    public Map<String,Object> login(HttpServletRequest request, PhoneCode phoneCode);

    /*//查询已登录用户
    public User queryLogin(String token);
*/
    //查一个
    public User queryOne(Integer id);

    public User update(User user);
}
